package com.net.xpay.common.domain;

import com.net.common.domain.CommonDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDate;

/**
 * @author 86188
 */
@Getter
@Setter
@NoArgsConstructor
public class ApiMonitor extends CommonDomain {

    @ApiModelProperty(notes = "接口名称")
    private String apiName;

    @ApiModelProperty(notes = "接口路径")
    private String api;

    @ApiModelProperty(notes = "服务器ip")
    private String ip;

    @ApiModelProperty(notes = "日期")
    private LocalDate day;

    @ApiModelProperty(notes = "小时")
    private Integer hour;

    @ApiModelProperty(notes = "请求总数")
    private Long reqCount;

    @ApiModelProperty(notes = "异常数")
    private Long errReqCount;

    @ApiModelProperty(notes = "总耗时（毫秒）")
    private Long totalReqCostTime;

    @ApiModelProperty(notes = "最大耗时（毫秒）")
    private Long maxReqCostTime;

    @ApiModelProperty(notes = "最小耗时（毫秒）")
    private Long minReqCostTime;
}
